package com.hc;

import com.hc.factory.BeanFactory;
import com.hc.service.UserService;
import org.junit.Test;

public class BeanApplication {
    @Test
    public void f1(){
        BeanFactory factory = new BeanFactory("/bean.properties");
        UserService userService = (UserService) factory.getBean("userService");
        userService.save();
    }
}
